<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>
<script>

function starquery(){
    var center = $("#center").val();
	var start_date = $("#start_date").val();
	window.location.href="${contextPath}/rent/rentInforList.htm?center="+center+"&start_date="+start_date;
}

</script>
</head>

<body>
	<div id="container">
		<div id="title">房租信息</div>
		
		<table class="form_table">
			<tbody>
			<tr class="even_row">
				<td>
				    <label>查询中心：</label>
					<select id="center" >
					<option value=""></option>
	            		<#if office_List??>
	              			<#list office_List as ls>
	              				<option value="${ls.name}">${ls.name}</option>
	              			</#list>
	            		</#if>
	            	</select>
	            	<label>查询月份：</label>	
					<input type="text" id="start_date" size="15" value="${date}" rel="DATE::Y-m"/>
					<input type="button" value=" 查询 " onclick="starquery()">
					<a href="${contextPath}/rent/add_houseinformation.htm"><input type="button" value=" 添加房屋信息 "></a>
				
				</td>
			</tr>
			</tbody>
		
		<table>
			<tr class="fields">
			    <th width="8%">中心</th>
				<th width="12%">地址</th>
				<th width="8%">租金交纳周期</th>
				<th width="8%">租金</th>
				<th width="8%">打款账号</th>
				<th width="10%">开户行</th>
				<th width="8%">收款人</th>
				<th width="8%">租金缴纳提醒</th>
				<th width="8%">合同到期提醒</th>
				<th width="4%">操作</th>
				<th width="9%">添加</th>
				<th width="11%">查看</th>
			    
			</tr>
			<#list list as list>
				<tr class="even_row">
				    <td align="center"><#if list.center??>${list.center}</#if></td>
					<td align="center"><#if list.address??>${list.address}</#if></td>
					<td align="center"><#if list.paymentcycle??>${list.paymentcycle}</#if>
					<td align="center"><#if list.rent??>${list.rent}</#if>
					<td align="center"><#if list.accountNumber??>${list.accountNumber}</#if></td>
					<td align="center"><#if list.bank??>${list.bank}</#if></td>
					<td align="center"><#if list.accountHolder??>${list.accountHolder}</#if></td>
					<td align="center"><#if list.leaveMessage1??>${list.leaveMessage1}</#if></td>
					<td align="center"><#if list.leaveMessage??>${list.leaveMessage}</#if></td>
					<td align="center"><a href="${contextPath}/rent/add_houseinformation.htm?id=${list.rent_Infor_id}">编辑</a></td>
					<td>
						<#if list.ht_url?? && list.ht_url!="">
						<a href="G:${list.ht_url}">下载合同-</a>
						<#else>
						<a href="${contextPath}/rent/add_houseinformation.htm?id=${list.rent_Infor_id}" class="tosnmiddle_btn xun">去添加合同-</a>
						
						</#if>
						<a href="${contextPath}/rent/add_rent.htm?rent_Infor_id=${list.rent_Infor_id}">-添加租金</a>
					</td>
	                <td align="center"><a href="${contextPath}/rent/rentList.htm?rent_Infor_id=${list.rent_Infor_id}">查看往期租金-</a>
	                <a href="${contextPath}/rent/rentListDetail.htm?tg_rent=${list.id}">-查看合同明细</a>
	                </td>
	                
				</tr>
			</#list>
			
			
		</table>
	</div>
	<div id="pager" style="width: 820px;">
	<ul id="pagination">
		<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
			<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
				<#if currpage==1 >
					<li class="previous-off">上一页</li>
					<#else>
					<li class="previous"><a href="${contextPath}/rent/rentInforList.htm?currPage=${currpage-1}">上一页</a></li>
					</#if>
					
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/rent/rentInforList.htm?currPage=${index_up}">${index_up}</a></li>  
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/rent/rentInforList.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/rent/rentInforList.htm?currPage=${pagetotal}">${pagetotal}</a></li>  
				
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/rent/rentInforList.htm?currPage=1">1</a></li>  
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/rent/rentInforList.htm?currPage=${index_up}">${index_up}</a></li>  
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/rent/rentInforList.htm?currPage=${pagetotal}">${pagetotal}</a></li>   
			<#else>
				<li><a href="${contextPath}/rent/rentInforList.htm?currPage=1">1</a></li> 
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/rent/rentInforList.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
				</#list>  
			</#if>
			
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/rent/rentInforList.htm.htm?currPage=${currpage+1}">下一页</a></li>
		</#if>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
	</ul>
	</div>
	<div class="emptyline clear"></div>
</body>
</html>